import Vue from 'vue'
import App from './App.vue'
import router from './router'
import TreeTable from "vue-table-with-tree-grid"
//导入element插件表
import './plugins/element.js'
//导入富文本编辑器
import VueQuillEditor from "vue-quill-editor"
//导入富文本编辑器的样式
import "quill/dist/quill.core.css"
import "quill/dist/quill.snow.css"
import "quill/dist/quill.bubble.css"
//注册为全局
Vue.use(VueQuillEditor)
// 全局样式
import "./assets/css/global.css"
// 自定义icon
import "./assets/css/fonts/iconfont.css"
import "./assets/css/eyes/iconfont.css"

//设置全局请求方法
import axios from "./network"
Vue.prototype.$XHR=axios

//自定义加载tree
Vue.component("tree-table",TreeTable)

Vue.config.productionTip = false
//全局过滤器
Vue.filter("dataFormat",(origin)=>{
  const dt= new Date(origin)
       ,y= dt.getFullYear()
       ,m= (dt.getMonth()+1+'').padStart(2,'0')
       ,d= (dt.getDate()+'').padStart(2,'0')
       ,h= (dt.getHours()+'').padStart(2,'0')
       ,M= (dt.getMinutes()+'').padStart(2,'0')
       ,s= (dt.getSeconds()+'').padStart(2,'0')
  return `${y}-${m}-${d} ${h}:${M}:${s}`
})
const m=new Vue({
  router
 ,render: h => h(App)
}).$mount('#app')

